<?php
require_once "includes/config.php";
session_start();	
	$date=date("Y-m-d");
	$sessid=session_id();
        
	//$val=$_REQUEST['val'];
	//$id=$_REQUEST['id'];
        $futureTime = mktime(0, 0, 0, date($m), date($d)+30, date($y));
        $today=date("Y-m-d G:i:s",$futureTime);
        //echo  $id;
	mysql_query("update tempcart set draftpost='".$today."',verify_code='".rand(1000000000,9999999999)."' where user_id='".$_SESSION['user_id_sess']."' ");
	echo "success";
        ?>
	